/**
 * Created by Administrator on 2016/10/25.
 */
//var json=sessionStorage.getItem("quoBase");
//json = JSON.parse(json)
//var json={"quoBase":{"quoId":2611759,"sign":"17579E6C77058A87CE8C5A44CFC1DD0E"},"plan":true, "benefit":true, "illustration":true, "productSpec":true, "tips":true, "clause":true};


$(function() {
	//获取url小按钮参数
	var quoBase = new Object;
	quoBase.quoId = getQueryString('quoId');
	quoBase.sign = getQueryString('sign');
	var json = new Object;
	json.quoBase = quoBase;
	json.frontCover = getQueryString('frontCover');
	json.company = getQueryString('company');
	json.plan = getQueryString('plan');
	json.benefit = getQueryString('benefit');
	json.clause = getQueryString('clause');
	json.illustration = getQueryString('illustration');
	json.productSpec = getQueryString('productSpec');
	json.tips = getQueryString('tips');
	//console.log(json);


	//关闭按钮的url
	var url = window.location.href;
	url = url.split('?')[1];
	var prev = '/pad_marketing/plan/proposal.action?' + url;
	$('.prev').attr('href', prev);

	//判断是否在客户端运行
	if (getQueryString('action') == 'share') {
		$('.back').hide();
		$('.prev').hide();
		$('.share').hide();
		$('#tr').show();
		//算高度-全页-底部
		//$(".main").css("height",$(window).height()-100);
	} else if (getQueryString('action') == 'preview') {
		$('.back').show();
		$('.share').show();
		$('#tr').hide();
		//$(".main").css("height",$(window).height()-100);
	}

	var arr = []; //存放主险被保险人利益对象
	var arr1 = []; //存放被保险人年龄
	var arr2 = []; //存放豁免险产品代码
	var userintId = ''; //quoBase中的userintId值用于获取营销员头像
	var totalpremium = 0; //计算首年总保费
	var html = '';
	var pkgCode = ''; //存放安康福至绑定的附加险pkgCode代码
	var pkgCodefirstBF = ''; //存放安康福至绑定的附加险的首年保费
	var Httpservice = '/pad_marketing/main/quoWechat.action';
	window.padMarketing.ajaxNormal(Httpservice, json, function(data) {
		console.log(data);
		userintId = data.quoBase.userIntId;
		var a = 0;
		var array = []; //存放被保险人信息对象
		//获取页面加载前动画里面的敬呈对象投保人信息
		for (var g = 0; g < data.cps.length; g++) {
			if (data.cps[g].cpId == 1) {
				$('.policyholder').text(data.cps[g].name);
			}
		}


		//存放豁免险产品代码
		for (var p = 0; p < data.policies.length; p++) {
			for (var q = 0; q < data.policies[p].covers.length; q++) {
				//添加豁免附加险(甲方添加，此地需要同步添加！不然豁免险保费计算不出)
				if (data.policies[p].covers[q].coverCode == 'AWOP03' || data.policies[p].covers[q].coverCode == 'WOP03' || data.policies[p].covers[q].coverCode == 'YRTDDWOP01' || data.policies[p].covers[q].coverCode == 'DDWOP01') {
					arr2.push(data.policies[p].covers[q].coverCode);
				}
			}
		}

		//田方格被保险人信息
		//如果投保人购买豁免险变为被保险人，只显示一个(偷懒做的，需要后期优化，哇哈哈)
		if (data.cps[0].rlToPh == data.cps[1].rlToPh) {
			totalpremium += data.cps[0].cpNbPremium + data.cps[1].cpNbPremium;
			html += '<h4 class="font-18 b lh-30 customer">客户：</h4>';
			html += '<div class="border-radius border-color-blue">';
			html += '<table class="table">';
			html += '<thead>';
			html += '<tr>';
			html += '<th>' + HtmlEncode(data.cps[0].name) + '</th>';
			html += '<th>' + data.cps[0].age + '岁</th>';
			html += '</tr>';
			html += '<tr>';
			html += '<th>' + data.cps[0].ocName + '</th>';
			html += '<th>首期保险费合计：' + formatMoney(data.cps[0].cpNbPremium + data.cps[1].cpNbPremium) + '</th>';
			html += '</tr>';
			html += '</thead>';
			html += '</table>';
			html += '</div>';
			html += '<div class="blank-10"></div>';
		} else {
			for (var i = 0; i < data.cps.length; i++) {
				if (arr2 == '') { //判断是否为豁免险
					if (data.cps[i].cpId != 1) {
						a++;
						array.push(data.cps[i]);
						totalpremium += data.cps[i].cpNbPremium;
						html += '<h4 class="font-18 b lh-30 customer">客户' + a + '：</h4>';
						html += '<div class="border-radius border-color-blue">';
						html += '<table class="table">';
						html += '<thead>';
						html += '<tr>';
						html += '<th>' + HtmlEncode(data.cps[i].name) + '</th>';
						html += '<th>' + data.cps[i].age + '岁</th>';
						html += '</tr>';
						html += '<tr>';
						html += '<th>' + data.cps[i].ocName + '</th>';
						html += '<th>首期保险费合计：' + formatMoney(data.cps[i].cpNbPremium) + '</th>';
						html += '</tr>';
						html += '</thead>';
						html += '</table>';
						html += '</div>';
						html += '<div class="blank-10"></div>';
					}
				} else {
					a++;
					array.push(data.cps[i]);
					totalpremium += data.cps[i].cpNbPremium;
					html += '<h4 class="font-18 b lh-30 customer">客户' + a + '：</h4>';
					html += '<div class="border-radius border-color-blue">';
					html += '<table class="table">';
					html += '<thead>';
					html += '<tr>';
					html += '<th>' + HtmlEncode(data.cps[i].name) + '</th>';
					html += '<th>' + data.cps[i].age + '岁</th>';
					html += '</tr>';
					html += '<tr>';
					html += '<th>' + data.cps[i].ocName + '</th>';
					html += '<th>首期保险费合计：' + formatMoney(data.cps[i].cpNbPremium) + '</th>';
					html += '</tr>';
					html += '</thead>';
					html += '</table>';
					html += '</div>';
					html += '<div class="blank-10"></div>';
				}
			}
		}

		$('.main_people').append(html);

		//如果只存在一个被保险人的话，就显示为客户而不是客户一
		if (array.length == 1) {
			$('.customer').html('客户：');
		}

		//头部首期总保费模块
		setTimeout(function() {
			document.getElementById('totalpremium').innerHTML = formatMoney(totalpremium);
		}, 1000);


		for (var j = 0; j < data.policies.length; j++) {
			var html1 = '';
			html2 = ''; //主险信息
			html3 = ''; //附加险信息
			html8 = ''; //高低中档模块
			html9 = ''; //利益演示图
			html10 = ''; //利益演示图
			html11 = ''; //进度条模块
			htmlLypdf = ''; //利益演示PDF
			str = '';
			html1 += '<div class="banner">';
			html1 += '<div class="banner-bg"></div>';
			html1 += '<img src="/portal/resources/images/product/packages/' + data.policies[j].polBase.productId + '/WXFX.jpg" />';
			html1 += '<h2 class="font-18">' + data.policies[j].polBase.productName + '</h2>';
			html1 += '</div>';
			for (var k = 0; k < data.policies[j].covers.length; k++) {
				if (data.policies[j].covers[k].cvcCode == "PRI") {
					arr.push(data.policies[j].covers[k].illustrations);
					html2 += '<div class="blank-10"></div>';
					html2 += '<div class="border-blue">';
					html2 += '<table class="table">';
					html2 += '<thead>';
					html2 += '<tr>';
					html2 += '<th width="50%">';
					html2 += '<p class="font-16 text-center">交费期间</p>';
					html2 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].premTermName + '</p>';
					html2 += '</th>';
					html2 += '<th>';
					//安联安康福至两全保险必搭一款附加险，顾主险保费与附加险保费合计显示
/*if(data.policies[j].covers[k].coverCode=='AKFZB01'){
						//安康福至主附险总金额
						html2+='<p class="font-16 text-center">首年保费（主+附）</p>';
					    html2+='<p class="font-20 orange text-center">'+formatMoney(allAkfzMoney)+'</p>';
					}else{
						html2+='<p class="font-16 text-center">首年保费</p>';
					    html2+='<p class="font-20 orange text-center">'+formatMoney(data.policies[j].covers[k].covNbPremium)+'</p>';
					}*/
					html2 += '<p class="font-16 text-center">首年保费</p>';
					html2 += '<p class="font-20 orange text-center">' + formatMoney(data.policies[j].covers[k].covNbPremium) + '</p>';

					html2 += '</th>';
					html2 += '</tr>';
					html2 += '<tr>';
					html2 += '<th>';
					html2 += '<p class="font-16 text-center">保险期间</p>';
					html2 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].benefitTermName + '</p>';
					html2 += '</th>';
					html2 += '<th>';
					if (data.policies[j].covers[k].coverCode == 'AXJS01') {
						html2 += '<p class="font-16 text-center">基本保险金额/年金领取方式</p>';
						if (data.policies[j].covers[k].sumAssured == 0) {
							data.policies[j].covers[k].sumAssured = '-';
							html2 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].sumAssured + '/' + data.policies[j].polBase.annuityModeName + '</p>';
						} else {
							html2 += '<p class="font-20 orange text-center">' + formatMoney(data.policies[j].covers[k].sumAssured) + '/' + data.policies[j].polBase.annuityModeName + '</p>';
						}
					} else {
						html2 += '<p class="font-16 text-center">基本保险金额</p>';
						if (data.policies[j].covers[k].sumAssured == undefined || data.policies[j].covers[k].sumAssured == 0) {
							data.policies[j].covers[k].sumAssured = '-';
							html2 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].sumAssured + '</p>';
						} else {
							html2 += '<p class="font-20 orange text-center">' + formatMoney(data.policies[j].covers[k].sumAssured) + '</p>';
						}
					}
					html2 += '</th>';
					html2 += '</tr>';
					html2 += '</thead>';
					html2 += '</table>';
					html2 += '</div>';
					html2 += '<div class="blank-10"></div>';
					html2 += '<div class="blank-2"></div>';

					//安联超级随心两全保险（分红型） 满期金计划
					if (data.policies[j].polBase.productCode == "CJSX01" && data.policies[j].polBase.mdpDrawDesc) {
						html2 += '<div class="blank-10"></div>';
						html2 += '<div class="border-blue">';
						html2 += '<table class="table">';
						html2 += '<thead>';
						html2 += '<tr>';
						html2 += '<th colspan="2"><p class="b text-center">满期金领取计划</p>';
						html2 += '</th></tr></thead>';
						html2 += '<tbody><tr>';
						html2 += '<th width="50%"><p class="padding-10 text-left b">领取计划</p>';
						html2 += '</th><th><p class="padding-10 text-left">' + data.policies[j].polBase.mdpDrawDesc + '</p></th></tr>';
						if (data.policies[j].polBase.mdpInterestDrawTypeName) {
							html2 += '<tr>';
							html2 += '<th width="50%"><p class="padding-10 text-left b">累计生息领取计划</p>';
							html2 += '</th><th><p class="padding-10 text-left">' + data.policies[j].polBase.mdpInterestDrawTypeName + '</p></th></tr>';
						}
						html2 += '</tbody>';
						html2 += '</table>';
						html2 += '</div>';
						html2 += '<div class="blank-10"></div>';
						html2 += '<div class="blank-2"></div>';
					}


					//安联超级随心两全保险（分红型）（C款） 满期金计划
					if (data.policies[j].polBase.productCode == "CJSX03" && data.policies[j].polBase.mdpDrawDesc) {
						html2 += '<div class="blank-10"></div>';
						html2 += '<div class="border-blue">';
						html2 += '<table class="table">';
						html2 += '<thead>';
						html2 += '<tr>';
						html2 += '<th colspan="2"><p class="b text-center">满期金领取计划</p>';
						html2 += '</th></tr></thead>';
						html2 += '<tbody><tr>';
						html2 += '<th width="50%"><p class="padding-10 text-left b">领取计划</p>';
						html2 += '</th><th><p class="padding-10 text-left">' + data.policies[j].polBase.mdpDrawDesc + '</p></th></tr>';
						if (data.policies[j].polBase.mdpInterestDrawTypeName) {
							html2 += '<tr>';
							html2 += '<th width="50%"><p class="padding-10 text-left b">累计生息领取计划</p>';
							html2 += '</th><th><p class="padding-10 text-left">' + data.policies[j].polBase.mdpInterestDrawTypeName + '</p></th></tr>';
						}
						html2 += '</tbody>';
						html2 += '</table>';
						html2 += '</div>';
						html2 += '<div class="blank-10"></div>';
						html2 += '<div class="blank-2"></div>';
					}

					//利益演示PDF展示  lyysPdf   by:binGo 2017.02.23 
					if (getQueryString('illustration') == 'true') {
						if (data.policies[j].polBase.productCode == "AKWY01" || data.policies.length == "1" || data.policies[j].polBase.productCode == "HQZX01") {
							$(".lyysPdf-big").hide();
						} else {
							$(".lyysPdf-big").show();
							htmlLypdf += '<tr>';
							htmlLypdf += '<th valign="middle">';
							htmlLypdf += '<p class="font-16 lh-30" >' + '利益演示PDF' + '</p>';
							if (getQueryString('action') == 'preview') {
								htmlLypdf += '<a class="label btn-blue pull-right" onclick="goPdfShow(\'' + data.quoBase.illustrationUrl + '\')">查看</a>';
							} else {
								htmlLypdf += '<a class="label btn-blue pull-right" href=\'' + data.quoBase.illustrationUrl + '\' onclick="goPdfShow(\'' + data.quoBase.illustrationUrl + '\')">查看</a>';
							}
							htmlLypdf += '</th>';
							htmlLypdf += '</tr>';
						}
					} else {
						$(".lyysPdf-big").hide();
					}
					$('.lyysPdf').html(htmlLypdf);

					//利益演示图 
					if (getQueryString('illustration') == 'true') {
						html8 += '<div class="bg-white border-radius">';
						html8 += '<div class="blank-10"></div>';
						html8 += '<div class="blank-10"></div>';
						html8 += '<h4 class="text-center font-18 b">利益演示</h4>';
						html8 += '<hr>';
						html8 += '<div>';
						html8 += '<span class="radio_blo level">';
						html8 += '<span class="radio_yes" number=' + j + '>高档</span>';
						html8 += '<span class="radio_no" number=' + j + '>中档</span>';
						html8 += '<span class="radio_no" number=' + j + '>低档</span>';
						html8 += '</span>';
						html8 += '<div class="blank-10"></div>';
						html8 += '<p class="font-14 lh-20" id="hideSpan"></p>';
						html8 += '<div class="blank-10"></div>';
						html8 += '<div class="border-radius border-color-blue padding-15">';
						//超级随心两全（分红型）
						if (data.policies[j].covers[k].coverCode == 'CJSX01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">当年度现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cashdividends">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cumulativedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">满期保险金：</td>';
											html10 += '<td><span class="orange font-16 b insuranceExpiration">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						}
						//超级随心两全（分红型）C款
						if (data.policies[j].covers[k].coverCode == 'CJSX03') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故保险金：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生存金及满期金给付：</td>';
											html10 += '<td><span class="orange font-16 b surviveBenefit2">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit2) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">累积生存金给付(含累积生息)：</td>';
											html10 += '<td><span class="orange font-16 b cumulativeSurvival">' + formatMoney(data.policies[j].covers[k].illustrations[e].accSurviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">当年度现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cashdividends">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cumulativedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'YSYX01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生存给付：</td>';
											html10 += '<td><span class="orange font-16 b lifemoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">累积生存金(含累积生息)：</td>';
											html10 += '<td><span class="orange font-16 b cumulativeSurvival">' + formatMoney(data.policies[j].covers[k].illustrations[e].accSurviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">増额年金红利：</td>';
											html10 += '<td><span class="orange font-16 b dividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积増额年金红利：</td>';
											html10 += '<td><span class="orange font-16 b increasedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">终了红利：</td>';
											html10 += '<td><span class="orange font-16 b deaddividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].finDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'YSYXE01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生存给付：</td>';
											html10 += '<td><span class="orange font-16 b lifemoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<td width="50%" align="right">身故保险金：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">増额红利：</td>';
											html10 += '<td><span class="orange font-16 b dividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积増额年金红利：</td>';
											html10 += '<td><span class="orange font-16 b increasedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">终了红利：</td>';
											html10 += '<td><span class="orange font-16 b deaddividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].finDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'CZYY01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right ">生存给付：</td>';
											html10 += '<td><span class="orange font-16 b lifemoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<td width="50%" align="right">身故保险金：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">当年度现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cashdividends">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cumulativedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'AXJS01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">年金给付：</td>';
											html10 += '<td><span class="orange font-16 b njgf">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">累积年金（含累积生息）：</td>';
											html10 += '<td><span class="orange font-16 b ljnjhsx">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">当年度现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cashdividends">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%"  align="right">累积现金红利：</td>';
											html10 += '<td><span class="orange font-16 b Cumulativedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'CJSXUL01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBnftHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">全残给付：</td>';
											html10 += '<td><span class="orange font-16 b qcbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBnftHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">账户价值：</td>';
											html10 += '<td><span class="orange font-16 b zhjz">' + formatMoney(data.policies[j].covers[k].illustrations[e].accountValueHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'AKYT01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故保险金：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">全残保险金：</td>';
											html10 += '<td><span class="orange font-16 b qcbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">首次重大疾病保险金：</td>';
											html10 += '<td><span class="orange font-16 b sczdjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">轻症重疾保险金：</td>';
											html10 += '<td><span class="orange font-16 b qzjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].esci) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生命尊严提前给付金：</td>';
											html10 += '<td><span class="orange font-16 b smzytqgfj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'AKFZB01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + (data.policies[j].covers[k].illustrations[e].quoYear + data.cps[d].age) + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故保险金：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">全残保险金：</td>';
											html10 += '<td><span class="orange font-16 b qcbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">首次重大疾病保险金：</td>';
											html10 += '<td><span class="orange font-16 b sczdjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">轻症重疾保险金：</td>';
											html10 += '<td><span class="orange font-16 b qzjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].esci) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生命尊严提前给付金：</td>';
											html10 += '<td><span class="orange font-16 b smzytqgfj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">满期生存保险金：</td>';
											html10 += '<td><span class="orange font-16 b insuranceExpiration">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						} else if (data.policies[j].covers[k].coverCode == 'AKCTA01' || data.policies[j].covers[k].coverCode == 'AKCTB01' || data.policies[j].covers[k].coverCode == 'AKYY01') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + data.policies[j].covers[k].illustrations[e].age + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].deathBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">全残保险金：</td>';
											html10 += '<td><span class="orange font-16 b qcbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">首次重大疾病保险金：</td>';
											html10 += '<td><span class="orange font-16 b sczdjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">轻症重疾保险金：</td>';
											html10 += '<td><span class="orange font-16 b qzjbbxj">' + formatMoney(data.policies[j].covers[k].illustrations[e].esci) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">生命尊严提前给付金：</td>';
											html10 += '<td><span class="orange font-16 b smzytqgfj">' + formatMoney(data.policies[j].covers[k].illustrations[e].dd) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess"  num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						}
						//YSYXE02安联逸升优享教育金年金保险（分红型）利益演示  3/21 By:binGo
						else if (data.policies[j].covers[k].coverCode == 'YSYXE02') {
							html8 += '<p class="text-center font-14 lh-25">';
							for (var d = 0; d < data.cps.length; d++) {
								if (data.cps[d].cpId == 3) {
									for (var e = 0; e < data.policies[j].covers[k].illustrations.length; e++) {
										html9 += '<option>' + (data.policies[j].covers[k].illustrations[e].quoYear + data.cps[d].age) + '</option>';
										if (data.policies[j].covers[k].illustrations[e].age == data.cps[d].age + 1) {
											html8 += '被保险人<select class="age" num=' + j + '>';
											html10 += '</select>岁时';
											html10 += '</p>';
											html10 += '<table width="100%" class="font-14 lh-25 no_wrap">';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">年金给付：</td>';
											html10 += '<td><span class="orange font-16 b njgf">' + formatMoney(data.policies[j].covers[k].illustrations[e].surviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">累积年金给付（含累积生息）：</td>';
											html10 += '<td><span class="orange font-16 b ljnjhsx">' + formatMoney(data.policies[j].covers[k].illustrations[e].accSurviveBenefit) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">身故给付：</td>';
											html10 += '<td><span class="orange font-16 b deadmoney">' + formatMoney(data.policies[j].covers[k].illustrations[e].annPrem) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">增额红利：</td>';
											html10 += '<td><span class="orange font-16 b dividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDividendHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">累积增额红利：</td>';
											html10 += '<td><span class="orange font-16 b increasedividend">' + formatMoney(data.policies[j].covers[k].illustrations[e].incDivCshValHigh) + '</span>元</td>';
											html10 += '</tr>';
											html10 += '<tr>';
											html10 += '<td width="50%" align="right">终了红利：</td>';
											html10 += '<td><span class="orange font-16 b deaddividend">' + data.policies[j].covers[k].illustrations[e].finDividendHigh + '</span>元</td>';
											html10 += '</tr>';
											html10 += '</table>';
											html10 += '</div>';
											html10 += '<div class="blank-10"></div>';
											html10 += '<div class="">保单年度(拖动显示)</div>';
											html10 += '<table width="100%">';
											html10 += '<tr>';
											html10 += '<td width="30" align="left"><a class="font-30 blue reduce" num3=' + j + '>-</a></td>';
											html10 += '<td>';
											html10 += '<input class="prosess" num1=' + j + ' type="range" min="1" max=' + data.policies[j].covers[k].illustrations.length + '>';
											html10 += '</td>';
											html10 += '<td width="30" align="right"><a class="font-30 blue add" num2=' + j + '>+</a></td>';
											html10 += '</tr>';
											html10 += '</table>';
										}
									}
								}
							}
						}
						//安康无忧利益演示，静态显示
						else if (data.policies[j].covers[k].coverCode == 'AKWY01') {
							$("#hideSpan").addClass("hide");
							if (data.policies[j].covers[k].coverPlan == '1') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划一</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li>二级以上公立医院（不含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</li>'
								html10 += '<li class="wx-Blue-3" >总累计限额</li>';
								html10 += '<li class="orange-new">800000</li>';
								html10 += '<li class="wx-Blue-3" >住院、手术及门诊年度总限额</li>';
								html10 += '<li class="orange-new">200000</li>';
								html10 += '<li class="wx-Blue-2" >一、住院及手术医疗保险金</li>';
								html10 += '<li class="wx-Blue-3" >免赔额（门诊住院共用）</li>';
								html10 += '<li class="orange-new">0</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院床位费/重症监护室床位费（含护理费和膳食费）日限额</li>';
								html10 += '<li class="orange-new">500</li>';
								html10 += '<li class="wx-Blue-3" >(2) 住院药品费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(3) 手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(4) 住院医疗杂费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >以上1-4项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								html10 += '<li class="wx-Blue-2" >二、门诊</li>';
								html10 += '<li class="wx-Blue-3" >门诊年限额</li>';
								html10 += '<li class="orange-new">50000</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院前后门急诊费（前7天，后30天）</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(2) 门诊手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(3) 肾透析，恶性肿瘤电疗或放化疗门诊费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >以上1-3项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								//html10+='<li class="wx-Blue-2" >三、恶性肿瘤保险金（一次性给付）</li>';
								//html10+='<li class="orange-new">200000</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '2') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划二</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</li>'
								html10 += '<li class="wx-Blue-3" >总累计限额</li>';
								html10 += '<li class="orange-new">800000</li>';
								html10 += '<li class="wx-Blue-3" >住院、手术及门诊年度总限额</li>';
								html10 += '<li class="orange-new">200000</li>';
								html10 += '<li class="wx-Blue-2" >一、住院及手术医疗保险金</li>';
								html10 += '<li class="wx-Blue-3" >免赔额（门诊住院共用）</li>';
								html10 += '<li class="orange-new">0</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院床位费/重症监护室床位费（含护理费和膳食费）日限额</li>';
								html10 += '<li class="orange-new">1000</li>';
								html10 += '<li class="wx-Blue-3" >(2) 住院药品费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(3) 手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(4) 住院医疗杂费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >以上1-4项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								html10 += '<li class="wx-Blue-2" >二、门诊</li>';
								html10 += '<li class="wx-Blue-3" >门诊年限额</li>';
								html10 += '<li class="orange-new">50000</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院前后门急诊费（前7天，后30天）</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(2) 门诊手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >(3) 肾透析，恶性肿瘤电疗或放化疗门诊费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3" >以上1-3项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								//html10+='<li class="wx-Blue-2" >三、恶性肿瘤保险金（一次性给付）</li>';
								//html10+='<li class="orange-new">200000</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '3') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划三</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</li>'
								html10 += '<li class="wx-Blue-3" >总累计限额</li>';
								html10 += '<li class="orange-new">1200000</li>';
								html10 += '<li class="wx-Blue-3" >住院、手术及门诊年度总限额</li>';
								html10 += '<li class="orange-new">300000</li>';
								html10 += '<li class="wx-Blue-2" >一、住院及手术医疗保险金</li>';
								html10 += '<li class="wx-Blue-3" >免赔额（门诊住院共用）</li>';
								html10 += '<li class="orange-new">0</li>';
								html10 += '<li  class="wx-Blue-3">(1) 住院床位费/重症监护室床位费（含护理费和膳食费）日限额</li>';
								html10 += '<li class="orange-new">1000</li>';
								html10 += '<li  class="wx-Blue-3">(2) 住院药品费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li  class="wx-Blue-3">(3) 手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li  class="wx-Blue-3">(4) 住院医疗杂费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li  class="wx-Blue-3">以上1-4项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								html10 += '<li class="wx-Blue-2" >二、门诊</li>';
								html10 += '<li class="wx-Blue-3" >门诊年限额</li>';
								html10 += '<li class="orange-new">75000</li>';
								html10 += '<li class="wx-Blue-3">(1) 住院前后门急诊费（前7天，后30天）</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(2) 门诊手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(3) 肾透析，恶性肿瘤电疗或放化疗门诊费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">以上1-3项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								//html10+='<li class="wx-Blue-2" >三、恶性肿瘤保险金（一次性给付）</li>';
								//html10+='<li class="orange-new">300000</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '4') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划四</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</li>'
								html10 += '<li class="wx-Blue-3" >总累计限额</li>';
								html10 += '<li class="orange-new">2000000</li>';
								html10 += '<li class="wx-Blue-3" >住院、手术及门诊年度总限额</li>';
								html10 += '<li class="orange-new">500000</li>';
								html10 += '<li class="wx-Blue-2" >一、住院及手术医疗保险金</li>';
								html10 += '<li class="wx-Blue-3" >免赔额（门诊住院共用）</li>';
								html10 += '<li class="orange-new">0</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院床位费/重症监护室床位费（含护理费和膳食费）日限额</li>';
								html10 += '<li class="orange-new">1000</li>';
								html10 += '<li class="wx-Blue-3" >(2) 住院药品费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(3) 手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(4) 住院医疗杂费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li  class="wx-Blue-3">以上1-4项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								html10 += '<li class="wx-Blue-2" >二、门诊</li>';
								html10 += '<li class="wx-Blue-3" >门诊年限额</li>';
								html10 += '<li class="orange-new">125000</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院前后门急诊费（前7天，后30天）</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(2) 门诊手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(3) 肾透析，恶性肿瘤电疗或放化疗门诊费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">以上1-3项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								//html10+='<li class="wx-Blue-2" >三、恶性肿瘤保险金（一次性给付）</li>';
								//html10+='<li class="orange-new">500000</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '5') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划五</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</li>'
								html10 += '<li class="wx-Blue-3" >总累计限额</li>';
								html10 += '<li class="orange-new" class="orange-new">3200000</li>';
								html10 += '<li class="wx-Blue-3" >住院、手术及门诊年度总限额</li>';
								html10 += '<li class="orange-new" class="orange-new">800000</li>';
								html10 += '<li class="wx-Blue-2" >一、住院及手术医疗保险金</li>';
								html10 += '<li class="wx-Blue-3" >免赔额（门诊住院共用）</li>';
								html10 += '<li class="orange-new" class="orange-new">0</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院床位费/重症监护室床位费（含护理费和膳食费）日限额</li>';
								html10 += '<li class="orange-new" class="orange-new">1000</li>';
								html10 += '<li class="wx-Blue-3" >(2) 住院药品费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(3) 手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(4) 住院医疗杂费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">以上1-4项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								html10 += '<li class="wx-Blue-2" >二、门诊</li>';
								html10 += '<li class="wx-Blue-3" >门诊年限额</li>';
								html10 += '<li class="orange-new" class="orange-new">200000</li>';
								html10 += '<li class="wx-Blue-3" >(1) 住院前后门急诊费（前7天，后30天）</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(2) 门诊手术费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">(3) 肾透析，恶性肿瘤电疗或放化疗门诊费</li>';
								html10 += '<li>全额赔付</li>';
								html10 += '<li class="wx-Blue-3">以上1-3项赔付比例</li>';
								html10 += '<li>100%（有社保）/80% （无社保）*</li>';
								//html10+='<li class="wx-Blue-2" >三、恶性肿瘤保险金（一次性给付）</li>';
								//html10+='<li class="orange-new">800000</li>';
								html10 += '</ul></div>';
							}


						}

						//寰球
						else if (data.policies[j].covers[k].coverCode == 'HQZX01') {
							$("#hideSpan").addClass("hide");
							if (data.policies[j].covers[k].coverPlan == '1') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划一</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li class="orange-new">大中华（中国大陆，港，澳，台）之外</li>'
								html10 += '<li class="wx-Blue-3" >基本保险金额</li>';
								html10 += '<li class="orange-new">300万</li>';
								html10 += '<li class="wx-Blue-3" >医疗费用</li>';
								html10 += '<li class="orange-new">不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3" >交通费用(被保险人和一名陪同人员)</li>';
								html10 += '<li class="orange-new" >最高6万</li>';
								html10 += '<li class="wx-Blue-3">陪同人员住宿费用</li>';
								html10 += '<li class="orange-new" >3/4星酒店 最高6万</li>';
								html10 += '<li class="wx-Blue-3">每日住院津贴</li>';
								html10 += '<li class="orange-new" >无此项责任</li>';
								html10 += '<li class="wx-Blue-3">24*7翻译服务</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">遗体遣送回国</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">国内药物保障</li>';
								html10 += '<li class="orange-new" >住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</li>';
								html10 += '<li class="wx-Blue-3">返回津贴</li>';
								html10 += '<li class="orange-new" >无此项责任</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '2') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划二</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li class="orange-new">大中华（中国大陆，港，澳，台）之外</li>'
								html10 += '<li class="wx-Blue-3" >基本保险金额</li>';
								html10 += '<li class="orange-new">600万</li>';
								html10 += '<li class="wx-Blue-3" >医疗费用</li>';
								html10 += '<li class="orange-new">不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3" >交通费用(被保险人和一名陪同人员)</li>';
								html10 += '<li class="orange-new" >不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3">陪同人员住宿费用</li>';
								html10 += '<li class="orange-new" >3/4星酒店 不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3">每日住院津贴</li>';
								html10 += '<li class="orange-new" >600元/天*60</li>';
								html10 += '<li class="wx-Blue-3">24*7翻译服务</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">遗体遣送回国</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">国内药物保障</li>';
								html10 += '<li class="orange-new" >住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</li>';
								html10 += '<li class="wx-Blue-3">返回津贴</li>';
								html10 += '<li class="orange-new" >无此项责任</li>';
								html10 += '</ul></div>';
							}
							if (data.policies[j].covers[k].coverPlan == '3') {
								html10 += '<div class="open-body order_open_h">';
								html10 += '<ul class="order_interests font-16 WechatUl">';
								html10 += '<li class="wx-Blue-1">计划三</li>';
								html10 += '<li class="wx-Blue-3">医院范围</li>';
								html10 += '<li class="orange-new">大中华（中国大陆，港，澳，台）之外</li>'
								html10 += '<li class="wx-Blue-3" >基本保险金额</li>';
								html10 += '<li class="orange-new">1200万</li>';
								html10 += '<li class="wx-Blue-3" >医疗费用</li>';
								html10 += '<li class="orange-new">不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3" >交通费用(被保险人和一名陪同人员)</li>';
								html10 += '<li class="orange-new" >不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3">陪同人员住宿费用</li>';
								html10 += '<li class="orange-new" >5星酒店 不设单项最高限额</li>';
								html10 += '<li class="wx-Blue-3">每日住院津贴</li>';
								html10 += '<li class="orange-new" >1200元/天*60</li>';
								html10 += '<li class="wx-Blue-3">24*7翻译服务</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">遗体遣送回国</li>';
								html10 += '<li class="orange-new" >包含</li>';
								html10 += '<li class="wx-Blue-3">国内药物保障</li>';
								html10 += '<li class="orange-new" >住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</li>';
								html10 += '<li class="wx-Blue-3">返回津贴</li>';
								html10 += '<li class="orange-new" >120,000元 终身一次</li>';
								html10 += '</ul></div>';
							}

						}


						html11 += '<div class="blank-10"></div>';
						html11 += '</div>';
						html11 += '</div> ';
						html11 += '<div class="blank-1"></div>';
					}
				}
				//判断为豁免险的话保存期保费
				else if (data.policies[j].covers[k].pkgCode != '' && data.policies[j].covers[k].pkgCode != null && data.policies[j].covers[k].pkgCode != data.policies[j].covers[k].coverCode) {
					pkgCode = data.policies[j].covers[k].pkgCode;
					pkgCodefirstBF = data.policies[j].covers[k].covNbPremium;
					//以下代码为安康福至捆绑附加险展示所用
					html3 += '<div class="bg-white border-radius">';
					html3 += '<div class="padding-15">';
					html3 += '<h3 class="lh-30 b">' + data.policies[j].covers[k].coverName + '</h3>';
					html3 += '<div class="blank-10"></div>';
					html3 += '<div class="border-blue">';
					html3 += '<table class="table">';
					html3 += '<thead>';
					html3 += '<tr>';
					html3 += '<th width="50%">';
					html3 += '<p class="font-16 text-center">交费期间</p>';
					html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].premTermName + '</p>';
					html3 += '</th>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">首年保费</p>';
					html3 += '<p class="font-20 orange text-center firstyearpremium">' + formatMoney(data.policies[j].covers[k].covNbPremium) + '</p>';
					html3 += '</th>';
					html3 += '</tr>';
					html3 += '<tr>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">保险期间</p>';
					html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].benefitTermName + '</p>';
					html3 += '</th>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">基本保险金额</p>';
					if (data.policies[j].covers[k].sumAssured == 0) {
						data.policies[j].covers[k].sumAssured = '-';
						html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].sumAssured + '</p>';
					} else {
						html3 += '<p class="font-20 orange text-center">' + formatMoney(data.policies[j].covers[k].sumAssured) + '</p>';
					}
					html3 += '</th>';
					html3 += '</tr>';
					html3 += '</thead>';
					html3 += '</table>';
					html3 += '</div>';
					html3 += '</div>';
					html3 += '</div>';
					html3 += '<div class="blank-10"></div>';
					html3 += '<div class="blank-1"></div>';
				}
				//附加险信息
				else {
					html3 += '<div class="bg-white border-radius">';
					html3 += '<div class="padding-15">';
					html3 += '<h3 class="lh-30 b">' + data.policies[j].covers[k].coverName + '</h3>';
					html3 += '<div class="blank-10"></div>';
					html3 += '<div class="border-blue">';
					html3 += '<table class="table">';
					html3 += '<thead>';
					html3 += '<tr>';
					html3 += '<th width="50%">';
					html3 += '<p class="font-16 text-center">交费期间</p>';
					html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].premTermName + '</p>';
					html3 += '</th>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">首年保费</p>';
					html3 += '<p class="font-20 orange text-center firstyearpremium">' + formatMoney(data.policies[j].covers[k].covNbPremium) + '</p>';
					html3 += '</th>';
					html3 += '</tr>';
					html3 += '<tr>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">保险期间</p>';
					html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].benefitTermName + '</p>';
					html3 += '</th>';
					html3 += '<th>';
					html3 += '<p class="font-16 text-center">基本保险金额</p>';
					if (data.policies[j].covers[k].sumAssured == 0) {
						data.policies[j].covers[k].sumAssured = '-';
						html3 += '<p class="font-20 orange text-center">' + data.policies[j].covers[k].sumAssured + '</p>';
					} else {
						html3 += '<p class="font-20 orange text-center">' + formatMoney(data.policies[j].covers[k].sumAssured) + '</p>';
					}
					html3 += '</th>';
					html3 += '</tr>';
					html3 += '</thead>';
					html3 += '</table>';
					html3 += '</div>';
					html3 += '</div>';
					html3 += '</div>';
					html3 += '<div class="blank-10"></div>';
					html3 += '<div class="blank-1"></div>';
				}
			}
			str = '<div>' + html1 + '</div><div>' + html2 + '</div><div>' + html8 + html9 + html10 + html11 + '</div><div>' + html3 + '</div>';
			$('.product').append(str);
			arr1.push($('.age').val() - 1);
			$('.prosess').val(1); //初始化进度条
		}
		//根据险种判断是否显示档次按钮群
		for (var j = 0; j < data.policies.length; j++) {
			for (var k = 0; k < data.policies[j].covers.length; k++) {
				if (data.policies[j].covers[k].cvcCode == "PRI") {
					//不显示高中低档按钮
					if (data.policies[j].covers[k].coverCode == 'AKYT01' || data.policies[j].covers[k].coverCode == 'AKFZB01' || data.policies[j].covers[k].coverCode == 'AKYY01' || data.policies[j].covers[k].coverCode == 'AKCTA01' || data.policies[j].covers[k].coverCode == 'AKCTB01' || data.policies[j].covers[k].coverCode == 'AKWY01' || data.policies[j].covers[k].coverCode == 'HQZX01') {
						$('.level').eq(j).hide(); //根据险种判断是否显示档次按钮群 
					} else {
/*if(data.policies[j].covers[k].coverCode=='CJSXUL01'){  //判断投联险是否显示基本按钮
							$('.level').css({'display':'flex','justify-content':'space-around'});
							$('.level').eq(j).children('span').eq(2).show();
						}
						else{
							$('.level').css({'display':'flex','justify-content':'space-around'});
							$('.level').eq(j).children('span').eq(2).hide();
						}*/
						$('.level').eq(j).css({
							'display': 'flex',
							'justify-content': 'space-around'
						});
					}
/*if(data.policies[j].covers[k].coverCode==pkgCode){
						$('.firstyearpremium').text(formatMoney(data.policies[j].covers[k].covNbPremium+pkgCodefirstBF));
					}*/
				}
			}
		}
		//根据进度条给动态改变展示属性值
		$('.prosess').change(function() {
			var d = $(this).attr('num1');
			var f = $(this).parent().prev().children().eq(0).attr('num3');
			$(this).parents('table').siblings('div').eq(2).children().children().val((arr1[d] + parseInt($(this).val())));
			var age = $(this).parents('table').siblings('div').eq(2).children().children().val();
			var aa = $(this).parents('table').parent().children().eq(0).children('span[class="radio_yes"]').text();
			var b = $(this).parents('table').parent().children().eq(0).children('span[class="radio_yes"]').attr('number');
			var ljxjhlHigh = 0;
			var ljxjhlMid = 0;
			var ljxjhlLow = 0;
			var ljxjhl = 0;
			var ljnjhsxHigh = 0;
			var ljnjhsxMid = 0;
			var ljnjhsxLow = 0;
			var ljnjhsx = 0;
			var ljzenjhlHigh = 0;
			var ljzenjhlMid = 0;
			var ljzenjhlLow = 0;
			for (var i = 0; i < arr[f].length; i++) {
				if (arr[f][i].age == age) {
					for (var j = 0; j < parseInt(age - arr1[f]); j++) {
						//累计增额年金红利
						ljzenjhlHigh += arr[f][j].incDividendHigh; //高档
						ljzenjhlMid += arr[f][j].incDividendMid; //中档
						ljzenjhlLow += arr[f][j].incDividendLow; //低挡
						//累计现金红利
						ljxjhlHigh = arr[f][j].incDividendHigh + ljxjhlHigh * 1.03;
						ljxjhlMid = arr[f][j].incDividendMid + ljxjhlMid * 1.03;
						ljxjhlLow = arr[f][j].incDividendLow + ljxjhlLow * 1.03;
						//ljxjhl+=arr[f][j].incDivCshVal;
						//累积年金（含生息）
						ljnjhsxHigh = arr[f][j].surviveBnftHigh + ljnjhsxHigh * 1.03;
						ljnjhsxMid = arr[f][j].surviveBnftMid + ljnjhsxMid * 1.03;
						ljnjhsxLow = arr[f][j].surviveBnftLow + ljnjhsxLow * 1.03;
						ljnjhsx = arr[f][j].surviveBenefit + ljnjhsx * 1.03;
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]').text(formatMoney(ljnjhsx));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]').text(formatMoney(arr[f][i].accSurviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]').text(formatMoney(arr[f][i].surviveBenefit2));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					for (var j = 0; j < data.policies.length; j++) {
						for (var k = 0; k < data.policies[j].covers.length; k++) {
							if (data.policies[j].covers[k].cvcCode == "PRI") {
								if (data.policies[j].covers[k].coverCode != 'CJSXUL01') { //判断非投连产品时存在关键字赋值且次关键字不分高低中档
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBenefit));
									}
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].dd));
									}
								}
							}
						}
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]').text(formatMoney(arr[f][i].esci));
					}
					if (aa == '高档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlHigh));
						}
					} else if (aa == '中档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlMid));
						}
					} else if (aa == '低档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlLow));
						}
					}
/*else if(aa=='基本'){
						if($(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]')){
							$(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividend));
						}
						if($(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]')){
							$(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividend));
						}
						if($(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]')){
							$(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhl));
						}
						if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]')){
							$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividend));
						}
						if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')){
							$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhl));
						}
					}*/
				}
			}
		})
		//根据年龄下拉框给动态改变展示属性值
		$('.age').change(function() {
			var c = $(this).attr('num');
			var f = $(this).parent().parent().siblings('table').children().children().children().children('a').attr('num3');
			$(this).parent().parent().siblings('table').children().children().children().eq(1).children('input').val(($(this).val() - arr1[c]));
			var age = $(this).val();
			var aa = $(this).parent().parent().parent().children().eq(0).children('span[class="radio_yes"]').text();
			var b = $(this).parent().parent().parent().children().eq(0).children('span[class="radio_yes"]').attr('number');
			var ljxjhlHigh = 0;
			var ljxjhlMid = 0;
			var ljxjhlLow = 0;
			var ljxjhl = 0;
			var ljnjhsxHigh = 0;
			var ljnjhsxMid = 0;
			var ljnjhsxLow = 0;
			var ljnjhsx = 0;
			var ljzenjhlHigh = 0;
			var ljzenjhlMid = 0;
			var ljzenjhlLow = 0;
			for (var i = 0; i < arr[f].length; i++) {
				if (arr[f][i].age == age) {
					for (var j = 0; j < parseInt(age - arr1[f]); j++) {
						//累计增额年金红利
						ljzenjhlHigh += arr[f][j].incDividendHigh;
						ljzenjhlMid += arr[f][j].incDividendMid;
						ljzenjhlLow += arr[f][j].incDividendLow;
						//累计现金红利
						ljxjhlHigh = arr[f][j].incDividendHigh + ljxjhlHigh * 1.03;
						ljxjhlMid = arr[f][j].incDividendMid + ljxjhlMid * 1.03;
						ljxjhlLow = arr[f][j].incDividendLow + ljxjhlLow * 1.03;
						//ljxjhl+=arr[f][j].incDivCshVal;
						//累积年金（含生息）
						ljnjhsxHigh = arr[f][j].surviveBnftHigh + ljnjhsxHigh * 1.03;
						ljnjhsxMid = arr[f][j].surviveBnftMid + ljnjhsxMid * 1.03;
						ljnjhsxLow = arr[f][j].surviveBnftLow + ljnjhsxLow * 1.03;
						ljnjhsx = arr[f][j].surviveBenefit + ljnjhsx * 1.03;
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b smzytqgfj"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b smzytqgfj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b njgf"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b njgf"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b ljnjhsx"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b ljnjhsx"]').text(formatMoney(ljnjhsx));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b cumulativeSurvival"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b cumulativeSurvival"]').text(formatMoney(arr[f][i].accSurviveBenefit));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b surviveBenefit2"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b surviveBenefit2"]').text(formatMoney(arr[f][i].surviveBenefit2));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b insuranceExpiration"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b insuranceExpiration"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b lifemoney"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b lifemoney"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b sczdjbbxj"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b sczdjbbxj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parent().next('table').find('span[class="orange font-16 b qzjbbxj"]')) {
						$(this).parent().next('table').find('span[class="orange font-16 b qzjbbxj"]').text(formatMoney(arr[f][i].esci));
					}
					for (var j = 0; j < data.policies.length; j++) {
						for (var k = 0; k < data.policies[j].covers.length; k++) {
							if (data.policies[j].covers[k].cvcCode == "PRI") {
								if (data.policies[j].covers[k].coverCode != 'CJSXUL01') { //判断非投连产品时存在关键字赋值且次关键字不分高低中档
									if ($(this).parent().next('table').find('span[class="orange font-16 b deadmoney"]')) {
										$(this).parent().next('table').find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBenefit));
									}
									if ($(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]')) {
										$(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].dd));
									}
								}
							}
						}
					}
					if (aa == '高档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
										if ($(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
									}
								}
							}
						}
						if ($(this).parents('table').next().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').next().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueHigh));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendHigh));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlHigh));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlHigh));
						}
					} else if (aa == '中档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
										if ($(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
									}
								}
							}
						}
						if ($(this).parents('table').next().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').next().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueMid));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendMid));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlMid));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlMid));
						}
					} else if (aa == '低档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').next().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
										if ($(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]')) { //如果本字段存在则给其赋值；下同；
											$(this).parents().next('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
									}
								}
							}
						}
						if ($(this).parents('table').next().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').next().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueLow));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendLow));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlLow));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlLow));
						}
					}
/*else if(aa=='基本'){
						if($(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]')){
							$(this).parent().next('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividend));
						}
						if($(this).parent().next('table').find('span[class="orange font-16 b dividend"]')){
							$(this).parent().next('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividend));
						}
						if($(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]')){
							$(this).parent().next('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhl));
						}
						if($(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]')){
							$(this).parent().next('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividend));
						}
						if($(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]')){
							$(this).parent().next('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhl));
						}
					}*/
				}
			}
		})
		//根据进度条减号给动态改变展示属性值
		$('.reduce').click(function() {
			var f = $(this).attr('num3');
			$(this).parent().next().children('input').val(parseInt($(this).parent().next().children('input').val()) - 1);
			if ($(this).parent().next().children('input').val() <= 1) {
				$(this).parent().next().children('input').val(2);
			}
			$(this).parents('table').prev().prev().prev().children().eq(0).children('select').val(parseInt($(this).parent().next().children('input').val()) + arr1[f]);
			var aa = $(this).parents('table').parents().children().eq(0).children('span[class="radio_yes"]').text();
			var age = $(this).parents('table').prev().prev().prev().children().eq(0).children('select').val();
			var b = $(this).parents('table').parents().children().eq(0).children('span[class="radio_yes"]').attr('number');
			var ljxjhlHigh = 0;
			var ljxjhlMid = 0;
			var ljxjhlLow = 0;
			var ljxjhl = 0;
			var ljnjhsxHigh = 0;
			var ljnjhsxMid = 0;
			var ljnjhsxLow = 0;
			var ljnjhsx = 0;
			var ljzenjhlHigh = 0;
			var ljzenjhlMid = 0;
			var ljzenjhlLow = 0;
			for (var i = 0; i < arr[f].length; i++) {
				if (arr[f][i].age == age) {
					for (var j = 0; j < parseInt(age - arr1[f]); j++) {
						//累计增额年金红利
						ljzenjhlHigh += arr[f][j].incDividendHigh;
						ljzenjhlMid += arr[f][j].incDividendMid;
						ljzenjhlLow += arr[f][j].incDividendLow;
						//累计现金红利
						ljxjhlHigh = arr[f][j].incDividendHigh + ljxjhlHigh * 1.03;
						ljxjhlMid = arr[f][j].incDividendMid + ljxjhlMid * 1.03;
						ljxjhlLow = arr[f][j].incDividendLow + ljxjhlLow * 1.03;
						//ljxjhl+=arr[f][j].incDivCshVal;
						//累积年金（含生息）
						ljnjhsxHigh = arr[f][j].surviveBnftHigh + ljnjhsxHigh * 1.03;
						ljnjhsxMid = arr[f][j].surviveBnftMid + ljnjhsxMid * 1.03;
						ljnjhsxLow = arr[f][j].surviveBnftLow + ljnjhsxLow * 1.03;
						ljnjhsx = arr[f][j].surviveBenefit + ljnjhsx * 1.03;
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]').text(formatMoney(ljnjhsx));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]').text(formatMoney(arr[f][i].accSurviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]').text(formatMoney(arr[f][i].surviveBenefit2));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]').text(formatMoney(arr[f][i].esci));
					}
					for (var j = 0; j < data.policies.length; j++) {
						for (var k = 0; k < data.policies[j].covers.length; k++) {
							if (data.policies[j].covers[k].cvcCode == "PRI") {
								if (data.policies[j].covers[k].coverCode != 'CJSXUL01') { //判断非投连产品时存在关键字赋值且次关键字不分高低中档
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBenefit));
									}
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].dd));
									}
								}
							}
						}
					}
					if (aa == '高档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].cashValueHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlHigh));
						}
					} else if (aa == '中档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlMid));
						}
					} else if (aa == '低档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlLow));
						}
					}
/*else if(aa=='基本'){
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividend));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDivCshVal));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhl));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividend));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhl));
							}
						}*/
				}
			}
		})
		$('.add').click(function() { //根据进度条加号动态改变展示属性值
			var c = $(this).attr('num2');
			var f = $(this).parent().prev().prev().children().eq(0).attr('num3');
			$(this).parent().prev().children('input').val(parseInt($(this).parent().prev().children('input').val()) + 1);
			$(this).parents('table').prev().prev().prev().children().eq(0).children('select').val(parseInt($(this).parent().prev().children('input').val()) + arr1[c]);
			var aa = $(this).parents('table').parents().children().eq(0).children('span[class="radio_yes"]').text();
			var age = $(this).parents('table').prev().prev().prev().children().eq(0).children('select').val();
			var b = $(this).parents('table').parents().children().eq(0).children('span[class="radio_yes"]').attr('number');
			var ljxjhlHigh = 0;
			var ljxjhlMid = 0;
			var ljxjhlLow = 0;
			var ljxjhl = 0;
			var ljnjhsxHigh = 0;
			var ljnjhsxMid = 0;
			var ljnjhsxLow = 0;
			var ljnjhsx = 0;
			var ljzenjhlHigh = 0;
			var ljzenjhlMid = 0;
			var ljzenjhlLow = 0;
			for (var i = 0; i < arr[f].length; i++) {
				if (arr[f][i].age == age) {
					for (var j = 0; j < parseInt(age - arr1[f]); j++) {
						//累计增额年金红利
						ljzenjhlHigh += arr[f][j].incDividendHigh;
						ljzenjhlMid += arr[f][j].incDividendMid;
						ljzenjhlLow += arr[f][j].incDividendLow;
						//累计现金红利
						ljxjhlHigh = arr[f][j].incDividendHigh + ljxjhlHigh * 1.03;
						ljxjhlMid = arr[f][j].incDividendMid + ljxjhlMid * 1.03;
						ljxjhlLow = arr[f][j].incDividendLow + ljxjhlLow * 1.03;
						//ljxjhl+=arr[f][j].incDivCshVal;
						//累积年金（含生息）
						ljnjhsxHigh = arr[f][j].surviveBnftHigh + ljnjhsxHigh * 1.03;
						ljnjhsxMid = arr[f][j].surviveBnftMid + ljnjhsxMid * 1.03;
						ljnjhsxLow = arr[f][j].surviveBnftLow + ljnjhsxLow * 1.03;
						ljnjhsx = arr[f][j].surviveBenefit + ljnjhsx * 1.03;
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b smzytqgfj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b njgf"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b ljnjhsx"]').text(formatMoney(ljnjhsx));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b cumulativeSurvival"]').text(formatMoney(arr[f][i].accSurviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b surviveBenefit2"]').text(formatMoney(arr[f][i].surviveBenefit2));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b insuranceExpiration"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b lifemoney"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b sczdjbbxj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]')) {
						$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qzjbbxj"]').text(formatMoney(arr[f][i].esci));
					}
					for (var j = 0; j < data.policies.length; j++) {
						for (var k = 0; k < data.policies[j].covers.length; k++) {
							if (data.policies[j].covers[k].cvcCode == "PRI") {
								if (data.policies[j].covers[k].coverCode != 'CJSXUL01') { //判断非投连产品时存在关键字赋值且次关键字不分高低中档
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBenefit));
									}
									if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
										$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].dd));
									}
								}
							}
						}
					}
					if (aa == '高档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlHigh));
						}
					} else if (aa == '中档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlMid));
						}
					} else if (aa == '低档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
										if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
									}
								}
							}
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parents('table').prev().prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlLow));
						}
					}
/*else if(aa=='基本'){
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividend));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDivCshVal));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhl));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividend));
							}
							if($(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]')){
								$(this).parents('table').prev().prev().find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhl));
							}
						}*/
				}
			}
		})

		$('.level span').click(function() { //根据高、中、低、基本等按钮动态改变展示属性值
			var aa = $(this).text();
			var b = $(this).attr('number');
			var f = $(this).parent().siblings('table').children().children().children().children().eq(0).attr('num3');
			var age = $(this).parent().siblings('div').eq(2).children().children().val();
			$(this).siblings().addClass('radio_no').removeClass('radio_yes')
			$(this).addClass('radio_yes').removeClass('radio_no');
			var ljxjhlHigh = 0;
			var ljxjhlMid = 0;
			var ljxjhlLow = 0;
			var ljxjhl = 0;
			var ljnjhsxHigh = 0;
			var ljnjhsxMid = 0;
			var ljnjhsxLow = 0;
			var ljnjhsx = 0;
			var ljzenjhlHigh = 0;
			var ljzenjhlMid = 0;
			var ljzenjhlLow = 0;
			for (var i = 0; i < arr[f].length; i++) {
				if (arr[f][i].age == age) {
					for (var j = 0; j < parseInt(age - arr1[f]); j++) {
						//累计增额年金红利
						ljzenjhlHigh += arr[f][j].incDividendHigh;
						ljzenjhlMid += arr[f][j].incDividendMid;
						ljzenjhlLow += arr[f][j].incDividendLow;
						//累计现金红利
						ljxjhlHigh = arr[f][j].incDividendHigh + ljxjhlHigh * 1.03;
						ljxjhlMid = arr[f][j].incDividendMid + ljxjhlMid * 1.03;
						ljxjhlLow = arr[f][j].incDividendLow + ljxjhlLow * 1.03;
						//ljxjhl+=arr[f][j].incDivCshVal;
						//累积年金（含生息）
						ljnjhsxHigh = arr[f][j].surviveBnftHigh + ljnjhsxHigh * 1.03;
						ljnjhsxMid = arr[f][j].surviveBnftMid + ljnjhsxMid * 1.03;
						ljnjhsxLow = arr[f][j].surviveBnftLow + ljnjhsxLow * 1.03;
						ljnjhsx = arr[f][j].surviveBenefit + ljnjhsx * 1.03;
					}
					if ($(this).parents('table').prev().prev().find('span[class="orange font-16 b smzytqgfj"]')) {
						$(this).parents('table').prev().prev().find('span[class="orange font-16 b smzytqgfj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b njgf"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b njgf"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b ljnjhsx"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b ljnjhsx"]').text(formatMoney(ljnjhsx));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b cumulativeSurvival"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b cumulativeSurvival"]').text(formatMoney(arr[f][i].accSurviveBenefit));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b surviveBenefit2"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b surviveBenefit2"]').text(formatMoney(arr[f][i].surviveBenefit2));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b insuranceExpiration"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b insuranceExpiration"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b lifemoney"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b lifemoney"]').text(formatMoney(arr[f][i].surviveBenefit));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b sczdjbbxj"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b sczdjbbxj"]').text(formatMoney(arr[f][i].dd));
					}
					if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qzjbbxj"]')) {
						$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qzjbbxj"]').text(formatMoney(arr[f][i].esci));
					}
					for (var j = 0; j < data.policies.length; j++) {
						for (var k = 0; k < data.policies[j].covers.length; k++) {
							if (data.policies[j].covers[k].cvcCode == "PRI") {
								if (data.policies[j].covers[k].coverCode != 'CJSXUL01') { //判断非投连产品时存在关键字赋值且次关键字不分高低中档
									if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]')) {
										$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBenefit));
									}
									if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]')) {
										$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].dd));
									}
								}
							}
						}
					}
					if (aa == '高档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftHigh));
										}
									}
								}
							}
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueHigh));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendHigh));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlHigh));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendHigh));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlHigh));
						}
					} else if (aa == '中档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftMid));
										}
									}
								}
							}
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueMid));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendMid));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlMid));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendMid));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlMid));
						}
					} else if (aa == '低档') {
						for (var j = 0; j < data.policies.length; j++) {
							for (var k = 0; k < data.policies[j].covers.length; k++) {
								if (data.policies[j].covers[k].cvcCode == "PRI") {
									if (data.policies[j].covers[k].coverCode == 'CJSXUL01') { //判断是投连产品时存在关键字赋值且次关键字分高低中档变化
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deadmoney"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
										if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]')) {
											$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b qcbxj"]').text(formatMoney(arr[f][i].deathBnftLow));
										}
									}
								}
							}
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b zhjz"]').text(formatMoney(arr[f][i].accountValueLow));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividendLow));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhlLow));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividendLow));
						}
						if ($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]')) {
							$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhlLow));
						}
					}
/*else if(aa=='基本'){
							if($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]')){
								$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b deaddividend"]').text(formatMoney(arr[f][i].finDividend));
							}
							if($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]')){
								$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b dividend"]').text(formatMoney(arr[f][i].incDividend));
							}
							if($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]')){
								$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b increasedividend"]').text(formatMoney(ljzenjhl));
							}
							if($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]')){
								$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cashdividends"]').text(formatMoney(arr[f][i].incDividend));
							}
							if($(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]')){
								$(this).parent().next().next().next().next().children('table').find('span[class="orange font-16 b Cumulativedividend"]').text(formatMoney(ljxjhl));
							}
						}*/
				}
			}
		})


		//保险利益汇总
		if (getQueryString('benefit') == 'true') {
			for (var j = 0; j < data.policies.length; j++) {
				for (var k = 0; k < data.policies[j].covers.length; k++) {
					if (data.policies[j].covers[k].coverCode == 'AKWY01') {
						$('#benefit').hide();
					}else if(data.policies[j].covers[k].coverCode == 'HQZX01'){
						$('#benefit').hide();
					} else {
						var html5 = '';
						html5 += '<div class="border-blue">';
						html5 += '<table class="table">';
						html5 += '<thead>';
						html5 += '<tr>';
						html5 += '<th>';
						html5 += '<p class="font-20 text-center">保险利益汇总<br/>(基本保险金额/基本年金金额)</p>';
						html5 += '</th>';
						html5 += '</tr>';
						for (var n = 0; n < data.cps.length; n++) {
							for (var f = 0; f < data.cps[n].quoBenefits.length; f++) {
								if (data.policies[j].covers[k].coverCode == 'AKCTB01' || data.policies[j].covers[k].coverCode == 'AKYY01') {
									var pattern = /本合同终止。/g; //var pattern = /\d+(\.\d+)?%基本保险金额/g;
									var content = data.cps[n].quoBenefits[f].benefitDesc; //获取到的一段文字
									var binGo = content.match(pattern);
									if (binGo) {
										for (e = 0; e < binGo.length; e++) {
											//保险利益汇总文字颜色硬编码
											//content = content.replace(pattern,"<b style='color:red;'>"+binGo[e]+"</b>"); //设置获取到文字设置我的颜色
											html5 += '<tr>';
											html5 += '<th valign="middle">';
											html5 += '<span class="font-16 pull-left">' + data.cps[n].quoBenefits[f].benefitName + '：<span class="font-20 orange">' + data.cps[n].quoBenefits[f].sumAssured + '</span></span>';
											html5 += '<div class="clearfix"></div>';
											html5 += '<p class="gray lh-20">' + content + '</p>';
											html5 += '</th>';
											html5 += '</tr>';
											$('#benefit').show();
										}
									}
								} else {
									html5 += '<tr>';
									html5 += '<th valign="middle">';
									html5 += '<span class="font-16 pull-left">' + data.cps[n].quoBenefits[f].benefitName + '：<span class="font-20 orange">' + data.cps[n].quoBenefits[f].sumAssured + '</span></span>';
									html5 += '<div class="clearfix"></div>';
									html5 += '<p class="gray lh-20">' + data.cps[n].quoBenefits[f].benefitDesc + '</p>';
									html5 += '</th>';
									html5 += '</tr>';
								}
							}
						}
						html5 += '</thead>';
						html5 += '</table>';
						html5 += '</div>';
						html5 += '</div>';
						html5 += '<div class="blank-2"></div>';
						$('#benefit').show();
					}
				}
			}
			$('#benefit').append(html5);
		}


		//人身保险投保提示书
		if (getQueryString('tips') == 'true') {
			$('.prompt').show();
			if (data.quoBase.insuranceInfo != "") {
				var html6 = '';
				html6 += '<div class="bg-white border-radius risk">';
				html6 += '<div class="border-blue padding-10">';
				html6 += data.quoBase.insuranceInfo;
				html6 += '</div>';
				html6 += '</div>';
				html6 += '<div class="blank-10"></div>';
				$('.prompt').append(html6);
			}
			if (data.quoBase.riskInfo != "") {
				var html6 = '';
				html6 += '<div class="bg-white border-radius risk">';
				html6 += '<div class="border-blue padding-10">';
				html6 += data.quoBase.riskInfo;
				html6 += '</div>';
				html6 += '</div>';
				html6 += '<div class="blank-10"></div>';
				$('.prompt').append(html6);
			}
		} else {
			$('.prompt').hide();
		}




		//条款
		var html7 = '';
		for (var m = 0; m < data.clauses.length; m++) {
			html7 += '<tr>';
			html7 += '<th valign="middle">';
			html7 += '<p class="font-16 lh-30" style="">' + data.clauses[m].coverName + '</p>';
			if (getQueryString('action') == 'preview') {
				html7 += '<a class="label btn-blue pull-right" onclick="goPdfShow(\'' + data.clauses[m].clauseUrl + '\')">查看条款</a>';
			} else {
				html7 += '<a href=\'' + data.clauses[m].clauseUrl + '\' class="label btn-blue pull-right" onclick="goPdfShow(\'' + data.clauses[m].clauseUrl + '\')">查看条款</a>';
			}
			if (getQueryString('productSpec') == 'true' && data.clauses[m].productSpecUrl != '') {
				if (getQueryString('action') == 'preview') {
					html7 += '<a class="label btn-orange pull-right margin-right10" onclick="goPdfShow(\'' + data.clauses[m].productSpecUrl + '\')">产品说明书</a>';
				} else {
					html7 += '<a href=\'' + data.clauses[m].productSpecUrl + '\' class="label btn-orange pull-right margin-right10">产品说明书</a>';
				}
			}
			if (data.clauses[m].diseaseHtml != null && data.clauses[m].diseaseHtml != '') {
				var BZhtml = data.clauses[m].diseaseHtml;
				html7 += '<label class="label label-green pull-right margin-right10" onclick="BZXQ(\'' + BZhtml + '\',\'' + data.clauses[m].coverName + '\')">病种</label>';
			}
			html7 += '</th>';
			html7 += '</tr>';
		}
		$('.clause').html(html7);



		//个人名片
		var html4 = '';
		html4 += '<tr>';
		html4 += '<td align="right">公司名称：</td>';
		html4 += '<td>中德安联人寿保险</td>';
		html4 += '</tr>';
		html4 += '<tr>'
		html4 += '<td width="45%" align="right">营销员姓名：</td>';
		html4 += '<td class="b">' + data.agent.agentName + '</td>';
		html4 += '</tr>';
		html4 += '<tr>';
		html4 += '<td align="right">营销员职级：</td>';
		html4 += '<td>' + data.agent.roleName + '</td>';
		html4 += '</tr>';
		html4 += '<tr>';
		html4 += '<td align="right">营销员邮箱：</td>';
		html4 += '<td>' + data.agent.email + '</td>';
		html4 += '</tr>';
		html4 += '<tr>';
		html4 += '<td align="right">营销员手机：</td>';
		html4 += '<td class="b blue"><a class="blue" href="javascript:phone(' + data.agent.agentTel + ')">' + data.agent.agentTel + '&nbsp;&nbsp;<span class="icon_phone"><img src="/pad_marketing/html/img/icon_phone.png" alt=""></a></span></td>';
		html4 += '</tr>';
		html4 += '<tr>';
		html4 += '<td align="right">展业证编号：</td>';
		html4 += '<td>' + data.agent.businessNo + '</td>';
		html4 += '</tr>';
		$('.card').html(html4);
		//bottom代理人姓名
		$('.agentName').html(data.agent.agentName);
		//bottom中赋值电话号码并打电话功能
		$('.telphone').html(data.agent.agentTel).attr('href', 'javascript:phone(' + data.agent.agentTel + ')');

		//营销员头像
		$.ajax({
			type: "post",
			url: "/pad_marketing/main/getImage.action",
			data: {
				userIntId: userintId
			},
			dataType: "json",
			success: function(data) {
				console.log(data);
				if (data.imgUrl != null && data.imgUrl != "") {
					$('.pics').attr('src', data.imgUrl);
				} else {
					$('.pics').attr('src', '/pad_marketing/html/img/circle-bird.png');
				}
			}
		}, false)

/*padMarketing.ajaxNormal("/pad_marketing/main/getUser.action", {},
					function(data) {		
						console.log(data);
				    	if(data.imgUrl!=null&&data.imgUrl!=""){
				    		$('.pics').attr('src',data.imgUrl);
				    	}
				    	else{
				    		$('.pics').attr('src','/pad_marketing/html/img/circle-bird.png');
				    	}		
					}
				)	*/
		//微信建议书名称赋值
		/*$('.proposalname').text(data.quoBase.quoName);*/
		//微信发送按钮
		$('.share').click(function() {
			var urlString = window.location.href + '&time=' + new Date();
			var action = getQueryString('action');
			var imgUrl = ''; //微信缩略图地址
			urlString = urlString.replace(action, "share"); //将url里面要传的参数action变成share
			padMarketing.ajaxNormal('/pad_marketing/main/path.action', {
				'path': 'domain'
			}, function(obj) {
				imgUrl = obj.result + 'pad_marketing/html/img/wxfxslt.jpg';
				goToWeixin(data.quoBase.quoName, data.policies[0].polBase.productName, urlString, imgUrl)
				$.post('/pad_marketing/wechat/addShareCount.action');

			});
		})

	}, function(data) {
		console.log(data);
		alertMsg("建议书内容已经修改，请联系您的营销员");
	}, true)
})
//$('#totalpremium').html(formatMoney(totalpremium));


//打电话

function phone(date) {
	window.location.href = 'tel:' + date;
}

function phone1() {
	window.location.href = 'tel:' + data.agent.agentTel;
}
//病种详情

function BZXQ(url, name) {
	$('.diseasetitle').html(name + '<button type="button" class="close" onclick="closeDiv(\'open1\')">×</button>');
	$.get(url, function(html) {
		$('.diseasecontent').html(html);
		showDiv("open1");
	});
}

//alert

function alertMsg(msg, mode, okCallback, callParam, cancelCallBack) { //mode为空，即只有一个确认按钮，mode为1时有确认和取消两个按钮
	msg = msg || '';
	mode = mode || 0;
	var top = document.body.scrollTop || document.documentElement.scrollTop;
	var isIe = (document.all) ? true : false;
	var isIE6 = isIe && !window.XMLHttpRequest;
	var sTop = document.documentElement.scrollTop || document.body.scrollTop;
	var sLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
	var winSize = function() {
			var xScroll, yScroll, windowWidth, windowHeight, pageWidth, pageHeight;
			// innerHeight获取的是可视窗口的高度，IE不支持此属性
			if (window.innerHeight && window.scrollMaxY) {
				xScroll = document.body.scrollWidth;
				yScroll = window.innerHeight + window.scrollMaxY;
			} else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
				xScroll = document.body.scrollWidth;
				yScroll = document.body.scrollHeight;
			} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;
				yScroll = document.body.offsetHeight;
			}

			if (self.innerHeight) { // all except Explorer
				windowWidth = self.innerWidth;
				windowHeight = self.innerHeight;
			} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
				windowWidth = document.documentElement.clientWidth;
				windowHeight = document.documentElement.clientHeight;
			} else if (document.body) { // other Explorers
				windowWidth = document.body.clientWidth;
				windowHeight = document.body.clientHeight;
			}

			// for small pages with total height less then height of the viewport
			if (yScroll < windowHeight) {
				pageHeight = windowHeight;
			} else {
				pageHeight = yScroll;
			}

			// for small pages with total width less then width of the viewport
			if (xScroll < windowWidth) {
				pageWidth = windowWidth;
			} else {
				pageWidth = xScroll;
			}

			return {
				'pageWidth': pageWidth,
				'pageHeight': pageHeight,
				'windowWidth': windowWidth,
				'windowHeight': windowHeight
			}
		}();
	//alert(winSize.pageWidth);
	//遮罩层
	var styleStr = 'top:0;left:0;position:absolute;z-index:10000;background:#666;width:' + winSize.pageWidth + 'px;height:' + (winSize.pageHeight + 30) + 'px;';
	styleStr += (isIe) ? "filter:alpha(opacity=80);" : "opacity:1;"; //遮罩层DIV
	var shadowDiv = document.createElement('div'); //添加阴影DIV
	shadowDiv.style.cssText = styleStr; //添加样式
	shadowDiv.id = "shadowDiv";
	//如果是IE6则创建IFRAME遮罩SELECT
	if (isIE6) {
		var maskIframe = document.createElement('iframe');
		maskIframe.style.cssText = 'width:' + winSize.pageWidth + 'px;height:' + (winSize.pageHeight + 30) + 'px;position:absolute;visibility:inherit;z-index:-1;filter:alpha(opacity=0);';
		maskIframe.frameborder = 0;
		maskIframe.src = "about:blank";
		shadowDiv.appendChild(maskIframe);
	}
	document.body.insertBefore(shadowDiv, document.body.firstChild); //遮罩层加入文档
	//弹出框
	var styleStr1 = 'display:block;position:fixed;_position:absolute;left:' + 20 + '%;top:' + 20 + '%;_top:' + (winSize.windowHeight / 2 + top - 150) + 'px;'; //弹出框的位置
	var alertBox = document.createElement('div');
	alertBox.id = 'alertMsg';
	alertBox.style.cssText = styleStr1;
	//创建弹出框里面的内容P标签
	var alertMsg_info = document.createElement('P');
	alertMsg_info.id = 'alertMsg_info';
	alertMsg_info.innerHTML = msg;
	alertMsg_info.style.cssText = 'max-height: 400px;overflow: auto;';
	alertBox.appendChild(alertMsg_info);
	if (mode !== 1) {
		//创建按钮
		var btn1 = document.createElement('a');
		btn1.id = 'alertMsg_btn3';
		btn1.href = 'javas' + 'cript:void(0)';
		btn1.innerHTML = '<cite>确定</cite>';
		btn1.onclick = function() {
			if (okCallback) okCallback(callParam);
			document.body.removeChild(alertBox);
			document.body.removeChild(shadowDiv);
			return true;
		};
		//        alertBox.appendChild(btn1);
	}

	if (mode === 1) {
		var btn1 = document.createElement('a');
		btn1.id = 'alertMsg_btn1';
		btn1.href = 'javas' + 'cript:void(0)';
		btn1.innerHTML = '<cite>取消</cite>';
		btn1.onclick = function() {
			if (cancelCallBack) cancelCallBack();
			document.body.removeChild(alertBox);
			document.body.removeChild(shadowDiv);
			return true;
		};
		alertBox.appendChild(btn1);

		var btn2 = document.createElement('a');
		btn2.id = 'alertMsg_btn2';
		btn2.href = 'javas' + 'cript:void(0)';
		btn2.innerHTML = '<cite>确定</cite>';
		btn2.onclick = function() {
			if (okCallback) okCallback(callParam);
			document.body.removeChild(alertBox);
			document.body.removeChild(shadowDiv);
			return false;
		};
		alertBox.appendChild(btn2);
	}
	document.body.appendChild(alertBox);

}